package com.czxy.demo08;

public class Test01 {

    public static void main(String[] args) {

        int []arr={88,96,97,74,90,58,77,90,99};
        int min=arr[0];
        for (int i : arr) {
            min = Math.min(min, i);
        }
        int num=0;
        for (int i : arr) {
            if (i!=min){
                num+=i;
            }
        }
        System.out.println("平均分是"+(num/arr.length-1));

    }

}
